package com.febs.security.code;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author zhongyj <1126834403@qq.com><br/>
 * @date 2021/6/18
 */
public interface ValidateCodeGenerator {

    /**
     * 创建图形验证码
     *
     * @param request  HttpServletRequest
     * @param response HttpServletResponse
     * @return ValidateCode
     * @throws IOException IOException
     */
    ValidateCode createCode(HttpServletRequest request, HttpServletResponse response) throws IOException;
}
